import authRequest from "@/api/backend/base/auth.js";

export function getUserList(){
    return authRequest.get("/sysuser/list")
}



export function getUserPage(data){
    return authRequest.post("/sysuser/page",data)
}

export function createUser(userInfo){
    return authRequest.post("/sysuser/create",userInfo)
}


export function getUserDetail(userId){
    return authRequest.get("/sysuser/"+userId)
}

export function editUser(userInfo){
    return authRequest.post("/sysuser/edit",userInfo)
}

export function getUserInfo(userId){
    return authRequest.get("/sysuser/userInfo/"+userId)
}


export function updatePassword(userInfo){
    return authRequest.post("/sysuser/password/modify",userInfo)
}